package io.renren.modules.app.dao;

import io.renren.modules.app.entity.CategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * 分类
 *
 * @author HuangKexiang
 * @email yesjava@126.com
 * @date 2021-07-20 18:08:50
 */
@Mapper
public interface CategoryDao extends BaseMapper<CategoryEntity> {
    /**
     *  根据父类id 查询所有的子类别和本身
     * @param parentId
     * @return
     */
    public List<CategoryEntity> selectCategorysByParentId(@Param("parentId") Serializable parentId);
}
